package com.yk.anima.api;

import com.yk.anima.pojo.Orders;
import com.yk.anima.response.QueryResponseResult;
import com.yk.anima.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

import java.util.List;

/**
 * @author xiaokai
 * @create 2021-05-13 10:55:02
 * @desc...查询订单
 */

@Api(value = "管理订单", description = "对订单进行增删改查")
public interface OrdersApi {

    @ApiOperation("查询当前用户的所有订单")
    public List<Orders> findAll(int orderAdminId);

    //orderAdminId当前用户的Id
    @ApiOperation("生成当前购物订单")
    public ResponseResult save( int orderAdminId,int id);

    @ApiOperation("分页查询")
    public QueryResponseResult likeName(int page, int size, String animalName);

    @ApiOperation("根据Id删除清空订单")
    public ResponseResult deleteById(int oId,int orderAdminId);
}
